package org.cooperativa.controller;

import org.cooperativa.entities.Motorista;
import org.cooperativa.dao.MotoristaFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.inject.Named;
import javax.inject.Inject;
import javax.enterprise.context.SessionScoped;

@Named(value = "motoristaController")
@SessionScoped
public class MotoristaController extends AbstractController<Motorista> implements Serializable {

    @Inject
    private MotoristaFacade ejbFacade;

    public MotoristaController() {
        super(Motorista.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
